//
//  MegafaunaOfDayController.h
//  Digital Seamonsters
//
//  Created by Adam Cue on 2/8/11.
//  Copyright Adam Cue 2011.
//
//  This program is licensed and distributed under the terms of the GNU General Public License.  
//	The text for the license can be found in the license.txt file in this project.
//

#import <UIKit/UIKit.h>
#import <CoreData/CoreData.h>
#import <MediaPlayer/MediaPlayer.h>
#import "MegafaunaOfDay.h"
#import "MegafaunaOfDayTableViewController.h"
#import "FullScreenMegafaunaViewController.h"
#import "MegafaunaOfDayMedia.h"
#import "Reachability.h"
#import "MegafaunaOfTheWeekAsyncImageView.h"

@interface MegafaunaOfDayController : UIViewController <UIScrollViewDelegate, MegafaunaOfDayTableViewControllerDelegate, UIAlertViewDelegate, MegafaunaOfTheWeekAsyncImageViewDelegate, FullScreenMegafaunaViewControllerDelegate>{
	IBOutlet UIToolbar * _toolbar;
   IBOutlet UIScrollView * _mainImageView;
	IBOutlet UITextView * _description;
	IBOutlet UILabel * _nameLabel;
	IBOutlet UIButton * _showMegafaunaButton;
   IBOutlet UITextField * _imageCounter;
   IBOutlet UITextField * _loadingView;
   IBOutlet UIBarButtonItem * _saveButton;
   IBOutlet UIBarButtonItem * _refreshButton;
   UIBarButtonItem * _cancelButton;
   UIView * _helpView;
	MegafaunaOfDay * _megafauna;
	MegafaunaOfDayTableViewController * _mfodTable;
   NSMutableArray * _connections;
   UIImageView * _expandingImage;
   CGAffineTransform curTransform;
   float lastScale;
	BOOL firstLoad;
	BOOL firstRun;
   BOOL newMegafauna;
	BOOL internetAvailable;
   BOOL leftForFullScreenVideo;
   BOOL leftForFullScreenImage;
	Reachability * _reach;
}

- (IBAction)oldMegafauna:(id)sender;
- (IBAction)refresh;
- (IBAction)save;
- (void)checkForNewMegafauna;

@property(nonatomic, retain) UIBarButtonItem *cancelButton;
@property(nonatomic, retain) UIView * helpView;
@property(nonatomic, retain) MegafaunaOfDay *megafauna;
@property(nonatomic, retain) MegafaunaOfDayTableViewController * mfodTable;
@property(nonatomic, retain) NSMutableArray * connections;
@property(nonatomic, retain) UIImageView * expandingImage;
@property(nonatomic, retain) Reachability * reach;
@end
